//
//  MomViewController.m
//  30203笑哭脸
//
//  Created by student on 16/4/6.
//  Copyright © 2016年 NIIT. All rights reserved.
//

#import "MomViewController.h"
#import "ShowViewController.h"

@interface MomViewController ()

@property (nonatomic,strong) ShowViewController *show;


@end

@implementation MomViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.show = [[ShowViewController alloc] init];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
//- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
//{
//    self.show = segue.destinationViewController;
//    if([segue.identifier isEqualToString:@"M1"])
//    {
//        self.show.type = 1;
//    }
//    else if([segue.identifier isEqualToString:@"M2"])
//    {
//        self.show.type = 2;
//    }
//    else
//    {
//        self.show.type = 3;
//    }
//}

- (IBAction)btn1Pressed:(id)sender
{
    self.show.type = 1;
    [self.navigationController pushViewController:self.show animated:YES];
}

- (IBAction)btn2Pressed:(id)sender
{
    self.show.type = 2;
    [self.navigationController pushViewController:self.show animated:YES];
}


- (IBAction)btn3Pressed:(id)sender
{
    self.show.type = 3;
    [self.navigationController pushViewController:self.show animated:YES];

}

@end
